import java.util.Scanner;

public class common_nul {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        int a = num.nextInt();
        int b = num.nextInt();
        int c = a > b ? a : b;
        int i;
        for(i = 1;i < c;i++ )
        {
            if((c*i)%b == 0 && (c*i) % a == 0)
            {
                System.out.printf("%d\n",c*i);
                break;
            }
        }
    }
}
